<table class="lb_block" cellpadding="2" cellspacing="1">
	<tr>
		<td class="lb_block_title">{$smarty.const.LANG_FIRST_PAGE_PANEL}</td>
	</tr>
	<tr>
		<td class="lb_block_body">
			<br />
			{if $action == "add"}
				{if $no_page_type}
					<center>
					{$smarty.const.LANG_CHOOSE_TYPE}: <br />
					
					<form action="{$webdir}admin.php">
						<input type="hidden" name="task" value="{$task}" />
						<input type="hidden" name="action" value="{$action}" />
						<select name="type">
							{foreach key=name item=item from=$page_types}
								<option value="{$name}">{$name} ({$item.desc})</option>
							{/foreach}
						</select>
						<input type="submit" value="{$smarty.const.LANG_SUBMIT}" />
					</from>
					</center>
				{elseif isset($add_page_type)}
						{include file="$dir/page/type_$add_page_type/templates/add.tpl"}
				{else}
					<ul><a href="{$webdir}">{$smarty.const.LANG_FIRST_PAGE}</a></ul>
				{/if}
			{elseif $action == "edit"}
			{elseif $action == "change_type"}
			
			{else}
				{if $no_first_page}
					<ul><a href="{$webdir}admin.php?task=first_page&action=add">{$smarty.const.LANG_ADD_FIRST_PAGE}</a></ul>
				{else}
					<ul><b>{$content}</b></ul>
				{/if}
			{/if}
			<br />
		</td>
	</tr>
</table>